

#ifndef _SDL_TRACER_
#define _SDL_TRACER_

#include "RayTracer.hpp"
#include "Graph.hpp"
#include "Scene.hpp"
#include <SDL.h>

namespace com
{
	namespace toxiclabs
	{
		namespace tsoc
		{
			namespace sdl
			{
				class SDLTracer: public RayTracer
				{
					private:
						SDL_Surface * screen;
						std::vector<Chunk * > commited_chunks;
						
					public:
						SDLTracer(int width,int height,int threads,Scene * scene,Graph * graph);
						~SDLTracer();
						
						void CommitChunk(Chunk * chunk);
						
						
						void DrawChunk(Chunk * chunk);
						
						void Run();
				};
			}
		}
	}
}


#endif
